﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;

namespace OpenAuth.App
{
    public class CYYGH004App : ApiBaseApp<CYYGH004>
    {
        public CYYGH004App(IApiRepository<CYYGH004> repository) : base(repository)
        {
        }
        /// <summary>
        /// 预约科室号序查询\预约科室号源号序信息查询
        /// </summary>
        /// <param name="pbxh">排班序号</param>
        /// <returns></returns>
        public IEnumerable<CYYGH004> QueryCYYGH004ByPbxh(string pbxh)
        {
            List<SqlParameter> param = new List<SqlParameter>();
            param.Add(new SqlParameter("@Pbxh", pbxh));
            param.Add(new SqlParameter("@Czyh", "hf001"));
            var result = Query<CYYGH004>("exec usp_web_webtrans_CYYGH004 @pbxh=@Pbxh,@czyh=@Czyh", param);
            return result;
        }
    }
}
